package com.aizuda.boot.modules.system.entity.vo.department;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 部门树形结构VO
 * @author system
 * @since 2024-01-01
 */
@Data
@Schema(description = "部门树形结构")
public class DepartmentTreeVO {

    @Schema(description = "部门ID")
    private Long id;

    @Schema(description = "节点ID")
    private Long nodeId;

    @Schema(description = "上级节点ID")
    private Long nodeParentId;

    @Schema(description = "部门名称")
    private String name;

    @Schema(description = "部门编码")
    private String code;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "是否可用，0：否，1：是")
    private Integer enable;

    @Schema(description = "子部门列表")
    private List<DepartmentTreeVO> children;
} 